package com.bckj.fastboot.iot.api.service;

import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.iot.common.constant.IotConstants;
import com.bckj.fastboot.iot.common.dto.query.IotBasicDataQuery;
import com.bckj.fastboot.iot.common.dto.response.IotBasicDataResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * IotBasicDataRemoteService
 *
 * @author wfc
 * @date 2025/10/17 16:13
 **/
@FeignClient(value = IotConstants.SERVICE_ID, contextId = "iotBasicData", path = "iotBasicData")
public interface IotBasicDataRemoteService {

    @GetMapping("/{id}")
    IotBasicDataResponse details(@PathVariable Long id);

    @GetMapping("/page")
    PageResult<IotBasicDataResponse> page(@SpringQueryMap IotBasicDataQuery query);


}
